package com.t2t.top.controller;

import com.t2t.top.framework.base.BaseController;
import com.t2t.top.framework.zk.ZookeeperRegister;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/health")
public class HealthController extends BaseController {
    Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    ZookeeperRegister register;


    @RequestMapping("/list")
    public String list() {
        this.getRequest().setAttribute("map", register.rootTreeNodes());
        return "health/list";
    }


}  